-
Notifications
You must be signed in to change notification settings - Fork 0
WIP: Using JNI+Rust instead of JNA on macOS #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #61 +/- ##
==========================================
+ Coverage 60.4% 77.9% +17.5%
- Complexity 147 171 +24
==========================================
Files 26 23 -3
Lines 812 768 -44
Branches 92 89 -3
==========================================
+ Hits 491 599 +108
+ Misses 270 106 -164
- Partials 51 63 +12 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…s (instead of NIO data)
…g file to the parent folder
…t amount of changes (and remove unused code)
6ea1016 to
f8276de
Compare
DavyLandman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small things to update, but looks good.
.github/workflows/build.yaml
Outdated
| distribution: 'temurin' | ||
| cache: 'maven' | ||
| #- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
| - run: ./update-rust-jni-libs.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo: we should publish these libs in a way that it's available for the release build of the maven lib.
or maybe just run maven package on a osx runner.
src/main/java/engineering/swat/watch/impl/mac/NativeEventHandler.java
Outdated
Show resolved
Hide resolved
src/main/java/engineering/swat/watch/impl/mac/NativeLibrary.java
Outdated
Show resolved
Hide resolved
…pied dynamic libraries
…ormat` in pom.xml
DavyLandman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, thanks @sungshik for picking it up and finishing it.
This PR replaces the JNA based implementation with a rust based implementation. This reduces our dependencies (fixing #58) and allows us to improve the performance in future PRs by moving some logic to the rust side.